/* 
 * File:   Lista.h
 * Author: Arturo
 *
 * Created on November 27, 2010, 5:35 PM
 */

#ifndef LISTA_H
#define	LISTA_H

#include "Nodo.h"

using namespace std;

class Lista {
public:
    Lista();
    virtual ~Lista();

    Nodo* Head;
    Nodo* Current;
    bool Find(int id);
    bool Add(Object* dato);
    bool Remove(Object* dato);
    Nodo* Next();
    void Reset();
    string ToString();
    friend ostream& operator<<(ostream &os, const Lista &l);
private:
    bool Find(Object* dato, Nodo** &p);
    int idmax;
};

#endif	/* LISTA_H */

